package cn.zebra.dev.admin.module.role.entity;

import cn.zebra.dev.base.module.role.entity.BaseRoleMenu;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 后台角色与菜单对应关系
 *
 * @author runnable
 * @date 2019-09-07 17:02:18
 */
@TableName("admin_role_menu")
@Getter
@Setter
public class AdminRoleMenuEntity implements BaseRoleMenu, Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("角色ID")
    private Long roleId;

    @ApiModelProperty("菜单ID")
    private Long menuId;
}
